package com.gj.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.gj.bean.Car;

//@Configuration
//@ComponentScan("com.gj.bean")
public class MainConfigOfLifeCycle {

    @Bean(initMethod="init", destroyMethod="destroy")
    public Car car() {
        return new Car();
    }

}

